import network from '@/utils/network'
import baseUrl from './baseUrl'
const BASE_URL = baseUrl + '/CustomerTitle'

export default {
  getPageList(data) {
    return network.request({
      url: BASE_URL + '/GetPageList',
      method: 'post',
      data
    })
  },
  getDetail(id) {
    return network.request({
      url: BASE_URL + '/GetDetail',
      method: 'get',
      params: {
        id
      }
    })
  },
  getOldIcpPageList(data) {
    return network.request({
      url: BASE_URL + '/GetOldIcpPageList',
      method: 'post',
      data
    })
  },
  getOldIcpDetail(id) {
    return network.request({
      url: BASE_URL + '/GetOldIcpDetail',
      method: 'get',
      params: {
        id
      }
    })
  },
  getOldIcpDetail(id) {
    return network.request({
      url: BASE_URL + '/GetOldIcpDetail',
      method: 'get',
      params: {
        id
      }
    })
  },
  importOldIcpCustomerTitleToNewIcp(data) {
    return network.request({
      url: BASE_URL + '/ImportOldIcpCustomerTitleToNewIcp',
      method: 'post',
      data
    })
  },
  syncCustomersToIcp(data) {
    return network.request({
      url: BASE_URL + '/SyncCustomersToIcp',
      method: 'post',
      data
    })
  },
  resetNameUniqueValue(data) {
    return network.request({
      url: BASE_URL + '/ResetNameUniqueValue',
      method: 'post',
      data
    })
  },
  getExamineStatusExceptionList(data) {
    return network.request({
      url: BASE_URL + '/GetExamineStatusExceptionList',
      method: 'post',
      data
    })
  },
  repairExamineStatus(data) {
    return network.request({
      url: BASE_URL + '/RepairExamineStatus',
      method: 'post',
      data
    })
  },
}